package com.example.child_protection.dto.request.update;

import com.example.child_protection.dto.base.BaseUpdateRequestDTO;
import io.swagger.annotations.ApiParam;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/**
 * 科室修改请求DTO
 * @date 2018-11-1
 * @author Biz
 */
@Getter
@Setter
public class DepartmentUpdateRequestDTO extends BaseUpdateRequestDTO {

    /**
     * 科室名称
     *
     * @mbggenerated
     */
    @ApiParam(value = "科室名称",required = true)
    @NotNull
    private String name;

    /**
     * 所属医院
     *
     * @mbggenerated
     */
    @ApiParam(value = "医院id")
    @NotNull
    private Long hispitalId;

    public void valid(){

        super.validate( this, new Class[0] );
    }
    public boolean isValidGid() {

        return false;
    }

}
